package com.codeplay.service;

import com.codeplay.entity.Chapter;
import java.util.List;

public interface ChapterService {
    Chapter createChapter(Chapter chapter);
    Chapter getChapterById(Long id);
    List<Chapter> getChaptersByCourseId(Long courseId);
    Chapter updateChapter(Chapter chapter);
    void deleteChapter(Long id);
    Chapter getNextChapter(Long courseId, Integer currentOrderIndex);
    Chapter getPreviousChapter(Long courseId, Integer currentOrderIndex);
} 